{% load i18n %}
{% load shop_tags %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="content-language" content="ru">
	<link rel="stylesheet" href="{{ MEDIA_URL }}css/style.css" type="text/css" />
	<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.4.2.min.js"></script>
	<script src="{{ MEDIA_URL }}js/main.js" type="text/javascript"></script>
	{% block scripts %}{% endblock %}
	<title>{% block title %}{% endblock %} - KoalaCMS</title>
	
</head>
<body>
	<div class="content">
			
		<div class="logo">
			<h1><a href="/" title="The best products on the net!">Koala<span class="red">CMS</span></a></h1>
			<p>{% trans "Django based shop" %}</p>
		</div>
		
		<div class="top_info">
			<div class="top_info_right">
				{% if not user.is_authenticated %}
					<p><b>{% trans "You are not Logged in!" %} </b><a id="login" href="/login">{% trans "Log in" %}</a> {% trans "or" %} <a id="register" href="{% url users.views.register %}?next={{ request.path }}">{% trans "register" %}</a> {% trans "for easy shopping!" %}</p>
				{% endif %}
				{% if user.is_authenticated %} 
					
				{% endif %}
									
			</div>		
		</div>
		
		{% search_block %}
		
		<div class="newsletter">
			{% categories_menu %}
		</div>
		
		<div class="subheader">
			<p><a href="#">Lorem ipsum dolor</a> sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex.</p>
		</div>
		
		<div class="left">
			{% block page %}
				{% if messages %}
					<ul>
					{% for message in messages %}
						 <li>{{ message }}</li>
					{% endfor %}
					</ul>
				{% endif %}
			<div class="left_articles">
				{% block content %}
				{% endblock %}
			</div>
			<div class="latest-news">		
				<div class="lt"></div>
				<div class="lbox">
					<h2>Latest news</h2>
					<h3>News title</h3>
					<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex.</p>
				</div>
			</div>				
			{% endblock %}
		</div>	
		<div class="right">
			{% block sidebar %}		
			
			{% endblock %}
		</div>	
		<div class="footer">
			<p><a href="#">RSS Feed</a> | <a href="#">Contact</a> | <a href="#">Accessibility</a> | <a href="#">Products</a><br />
			&copy; Copyright 2010 Django Shop, Developed: Albert Gazizov - <a href="http://deeper4k.ru/" title="Blog">deeper4k</a></p>
		</div>
	</div>
	{% if not user.is_authenticated %}
			{% include "login_form.html" %}
			<div id="popupRegister">
			</div>
			<div id="backgroundPopup"></div>
	{% endif %}
</body>
</html>
